package customer

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-oppty-service/infrastructure/common/utils"
)

type CustomerPoolImportRepoIface interface {
	// Save 新增记录
	Save(ctx context.Context, po *GfyxCustomerPoolImportPo) (*GfyxCustomerPoolImportPo, error)
	// Update 更新记录
	Update(ctx context.Context, condition, updates map[string]interface{}) error
	// Delete 删除记录
	Delete(ctx context.Context, condition map[string]interface{}, operator string) error
	// Query 查询列表
	Query(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo) (int64, []*GfyxCustomerPoolImportPo, error)
	// Count 计数统计
	Count(ctx context.Context, condition map[string]interface{}) (int64, error)
}
